﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace 立库托盘入库.bean
{
    class UserBean:INotifyPropertyChanged
    {
        private String _username;
        private String _uid;
        private bool _isxuan;
        public string UserName
        {
            get { return _username; }
            set { _username = value; }
        }

        public string name
        {
            get { return _username; }
            set { _username = value; }
        }

        public string Uid
        {
            get { return _uid; }
            set { _uid = value; }
        }

        public String Xuan
        {
            get {
                if (_isxuan)
                {
                    return "已选择";
                }
                else
                {
                    return "未选择";
                }
            }
        }

        public bool IsXuan
        {
            get { return _isxuan; }
            set { _isxuan = value;
                RaisePropertyChanged("Xuan");
            }
        }

        private void RaisePropertyChanged(string PropertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(PropertyName));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
